using Common.NotifyEvent;

namespace ProjectView.ProjectControls
{
	public class GridCheckBoxCell : NotifyPropertyChanged
	{
		private bool _Value;

		private bool _IsEnable = true;

		private int _Index;

		public bool Value
		{
			get
			{
				return _Value;
			}
			set
			{
				if (_Value != value)
				{
					_Value = value;
					OnPropertyChanged("Value");
				}
			}
		}

		public bool IsEnable
		{
			get
			{
				return _IsEnable;
			}
			set
			{
				if (_IsEnable != value)
				{
					_IsEnable = value;
					OnPropertyChanged("IsEnable");
				}
			}
		}

		public int Index
		{
			get
			{
				return _Index;
			}
			set
			{
				if (_Index != value)
				{
					_Index = value;
					OnPropertyChanged("Index");
				}
			}
		}

		public void SetValueNotNotify(bool value)
		{
			_Value = value;
		}
	}
}
